<?php

include "config/config.php";
include_once 'db_functions.php';
$id = 1;
$db3 = new DB_Functions();
$query3 = $db3->getIklan($id);
//$row = mysql_fetch_assoc($query3);

$r = mysql_fetch_assoc($query3);
// $rows[] = $r;
$id = json_encode($r);
include_once './GCM.php';

$gcm = new GCM();
$regId = "APA91bE3bcyO5mOyQK5OqbsGWbvQWrN9Nb9ezivJ8yyM0shNmqKRWJ1kOgAVYoNIwUWa2FxsvL9FWW7-ns-OLy78ZH6aP8XxzCYmfKEK2TjvQh5w39v_d13-FlD_yWJ-R2nlzBx4nJLpDcRmBJElrkUmqGvqcm8VXg";

$registatoin_ids = array($regId);
$id = array("price" => $id);

$result = $gcm->send_notification($registatoin_ids, $id);

//echo $row;
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

